import axios from '@/libs/api.request'
import qs from 'qs'

export const getTableData = (params) => {
  return axios.request({
    url: 'admins/dataDict/page?t='+new Date().getTime(),
    params,
    method: 'get'
  })
}

export const add = (data) => {
  return axios.request({
    url: 'admins/dataDict/add',
    data: qs.stringify(data),
    method: 'post'
  })
}

export const update = (data) => {
  return axios.request({
    url: 'admins/dataDict/update',
    data: qs.stringify(data),
    method: 'post'
  })
}

export const del = (data) => {
  return axios.request({
    url: 'admins/dataDict/delete',
    data: qs.stringify(data),
    method: 'post'
  })
}
